package com.local.seckill.pojo;

import com.local.common.constants.SeckillStatusEnum;

/**
 * 秒杀链接url对象
 */
public class SeckillUrl {

    public SeckillUrl(SeckillStatusEnum seckillStatusEnum, String md5, Integer seckillId) {
        this.seckillStatusEnum = seckillStatusEnum;
        this.md5 = md5;
        this.seckillId = seckillId;
    }

    public SeckillUrl(SeckillStatusEnum seckillStatusEnum, Integer seckillId, long now, long start, long end) {
        this.seckillStatusEnum = seckillStatusEnum;
        this.seckillId = seckillId;
        this.now = now;
        this.start = start;
        this.end = end;
    }

    public SeckillUrl(SeckillStatusEnum seckillStatusEnum, Integer seckillId) {
        this.seckillStatusEnum = seckillStatusEnum;
        this.seckillId = seckillId;
    }


    // 秒杀状态enum
    private SeckillStatusEnum seckillStatusEnum;

    // 一种加密措施
    private String md5;

    // id
    private Integer seckillId;

    // 系统当前时间（毫秒）
    private long now;

    // 开启时间
    private long start;

    // 结束时间
    private long end;

    public SeckillStatusEnum getSeckillStatusEnum() {
        return seckillStatusEnum;
    }

    public void setSeckillStatusEnum(SeckillStatusEnum seckillStatusEnum) {
        this.seckillStatusEnum = seckillStatusEnum;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public Integer getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Integer seckillId) {
        this.seckillId = seckillId;
    }

    public long getNow() {
        return now;
    }

    public void setNow(long now) {
        this.now = now;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }
}
